<?php defined('SYSPATH') OR die('No direct access allowed.');
	$arrLogradouros = ( isset($arrLogradouros) )? $arrLogradouros: array();
?>
<table style="border: 1px solid black; width: 100%;" >
	<tr align="center" >
		<td>
			<strong>Tipo</strong>
		</td>
		<td>
			<strong>T&iacute;tulo</strong>
		</td>
		<td>
			<strong>Logradouro</strong>
		</td>
		<td>
			<strong>-</strong>
		</td>
	</tr>
	<?php
		if ( isset($arrLogradouros[0]['intCodErro']) ) {
			echo '<tr>';
			echo	'<td colspan="3" >';
			echo		$arrLogradouros[0]['nome_logradouro'];
			echo	'</td>';
			echo '</tr>';
		} else {
			$par = true;
			foreach ($arrLogradouros as $arrLinha) {
				$cor = ( $par )? 'bgcolor="d4d4d4"': '';
				$par = !$par;

				$strLink = 'iptu/exibirFormPesquisaImovel/' . $arrLinha['codlog'] . '/' . urlencode($arrLinha['nome_logradouro']);

				echo '<tr '. $cor .' >';
				echo	'<td title="tipo" >';
				echo		html::anchor($strLink, $arrLinha['tipo_logradouro'] );
				echo	'</td>';
				echo	'<td title="título" >';
				echo		html::anchor($strLink, $arrLinha['titulo_logradouro'] );
				echo	'</td>';
				echo	'<td title="logradouro" >';
				echo		html::anchor($strLink, $arrLinha['nome_logradouro'] );
				echo	'</td>';
				echo	'<td>';
				echo		html::anchor($strLink, html::image('img/ico_lupa.gif', array('width'=>'20px','height'=>'20px')) );
				echo	'</td>';
				echo '</tr>';
			}
		}
	?>
</table>
